<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php 
if(is_object($profile))
{
?>
<div class="prospect">
	<div class="prospect-padding">
		<div class="profile-info">
			<h3 class="float-left title"><a href="<?php echo $profile->getLink(); ?>"><?php echo ucfirst($profile->getCompany()); ?></a></h3>
			<p class="float-left clear-left">
				<?php 
                    if($profile->getDeliveryAddress())
                    { echo ucfirst($profile->getDeliveryAddress().'&nbsp;'); }
                    else if($profile->getAddress())
                    { echo ucfirst($profile->getAddress().'&nbsp;'); }
                ?>
                <?php if($profile->getZip() > 0):  ?>
                <?php echo $profile->getZip(4); ?>&nbsp;
                <?php endif; ?>
                <?php echo ucfirst($profile->getCity()); ?><br />
                <?php if($profile->getPhone()):  ?>
               	 <?php echo ucfirst($txt->getWord('tel')); ?>:&nbsp;<?php echo $profile->getPhone(); ?>&nbsp;|
                <?php endif; ?>
                <?php if($profile->getMob()):  ?>
                <?php echo ucfirst($txt->getWord('mob')); ?>:&nbsp;<?php echo $profile->getMob(); ?>&nbsp;|
                <?php endif; ?>
                <?php if($profile->getFax()):  ?>
                <?php echo ucfirst($txt->getWord('fax')); ?>:&nbsp;<?php echo $profile->getFax(); ?>
                <?php endif; ?><br />
            </p>
            <div class="float-right">
            	<table border="0" cellpadding="0" cellspacing="0" style="width:120px;">
                  	<?php if($profile->getWww()):  ?>
					<tr>
						<td class="left">&nbsp;</td>
						<td class="left"><a href="<?php echo $profile->getWww(); ?>" target="_blank"><?php echo ucfirst($txt->getWord('homepage')); ?></a></td>
					</tr>
                    <?php elseif($profile->getProfilePage()):  ?>
					<tr>
						<td class="left">&nbsp;</td>
						<td class="left"><a href="<?php echo $profile->getLink(); ?>"><?php echo ucfirst($txt->getWord('profile_page')); ?></a></td>
					</tr>
					<?php endif; ?>
					<tr>
						<td class="left">&nbsp;</td>
						<td class="left"><a href="<?php echo $profile->getLink(); ?>">Bruktliste</a></td>
					</tr>
				</table><div class="clear"></div>
            </div><div class="clear"></div><br />
            
		</div><div class="clear"></div>
	</div>
</div>
<?php
}
?>